﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO.IsolatedStorage;

namespace Confucius.entity
{
    /// <summary>
    /// Author:Liangchuan Gu
    /// date:2012-04-08
    /// </summary>
    public class GameHeader
    {
        private string gameID;
        private string gameName;
        private string iconID;
        private string description;
        private string version;
        private string status;

        /*
         * Getter and Setters
         */
        public string GameID
        {
            get { return gameID; }
            set { gameID = value; }
        }

        public string GameName
        {
            get { return gameName; }
            set { gameName = value; }
        }

        public string IconID
        {
            get { return iconID; }
            set { iconID = value; }
        }

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        public string Version
        {
            get { return version; }
            set { version = value; }
        }

        public string Status
        {
            get { return status; }
            set { status = value; }
        }

        public string IconUri {
            get { return "/Confucius;component/assets/gameFiles/" + gameID + "/" + iconID + ".png"; }
        }

        public string TextColor
        {
            get { if (status.Equals(Game.NOT_EXIST)) return "Red"; else return "Green"; }
        }

        public string ExistStatus
        {
            get { if (status.Equals(Game.NOT_EXIST)) return "Download"; else return "Ready"; }
        }

        public string GameStatus
        {
            get { if (status.Equals(Game.START_STATUS)) return "Resume"; else return "Start"; }
        }
    }
}
